package cc.bukkitPlugin.banitem.command;

import org.bukkit.command.CommandExecutor;
import org.bukkit.command.TabCompleter;

import cc.bukkitPlugin.banitem.BanItem;
import cc.bukkitPlugin.util.plugin.command.TCommandExc;
import cc.bukkitPlugin.util.plugin.command.TCommandHelp;

public class CommandExc extends TCommandExc<BanItem> implements CommandExecutor,TabCompleter{

    /**
     * 必须在配置文件启用后才能调用此方法
     * @param pPlugin
     */
    public CommandExc(BanItem pPlugin){
        super(pPlugin,"banitem",true);
        this.registerSubCommand();
    }

    protected void registerSubCommand(){
        this.register(new TCommandHelp<BanItem>(this));

        this.register(new CommandAdd(this));
        this.register(new CommandCheck(this));
        this.register(new CommandNBTDump(this));
        this.register(new CommandParam(this));
        this.register(new CommandReload(this));
        this.register(new CommandRemove(this));
        this.register(new CommandScan(this));
        this.register(new CommandShow(this));
        this.register(new CommandTest(this));
    }

}
